import request from '@/utils/request'

// 查询【专业】列表
export function listMajor(query) {
  return request({
    url: '/studentMan/major/list',
    method: 'get',
    params: query
  })
}

// 查询【专业】详细
export function getMajor(id) {
  return request({
    url: '/studentMan/major/' + id,
    method: 'get'
  })
}

// 新增【专业】
export function addMajor(data) {
  return request({
    url: '/studentMan/major',
    method: 'post',
    data: data
  })
}

// 修改【专业】
export function updateMajor(data) {
  return request({
    url: '/studentMan/major',
    method: 'put',
    data: data
  })
}

// 删除【专业】
export function delMajor(id) {
  return request({
    url: '/studentMan/major/' + id,
    method: 'delete'
  })
}

// 查询专业号和专业名称
export function listMajorMsg() {
  return request({
    url: '/studentMan/major/listMajorMsg' ,
    method: 'get'
  })
}
